package top.pengdong.pictureShare.tweet.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import top.pengdong.pictureShare.common.model.PageUtils;
import top.pengdong.pictureShare.common.model.Query;
import top.pengdong.pictureShare.tweet.dao.PsTweetViewDao;
import top.pengdong.pictureShare.tweet.entity.PsTweetViewEntity;
import top.pengdong.pictureShare.tweet.service.PsTweetViewService;


@Service("psTweetViewService")
public class PsTweetViewServiceImpl extends ServiceImpl<PsTweetViewDao, PsTweetViewEntity> implements PsTweetViewService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PsTweetViewEntity> page = this.page(
                new Query<PsTweetViewEntity>().getPage(params),
                new QueryWrapper<PsTweetViewEntity>()
        );

        return new PageUtils(page);
    }

}